package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketCoupon;
import com.cskaoyan.market.db.domain.MarketCouponUser;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public interface AdminCouponService {
    List<MarketCoupon> list(Integer page, Short limit, String sort, String order, String name, String type, String status);

    MarketCoupon update(Integer id, String name, String desc, String tag, Integer total, BigDecimal discount, BigDecimal min, Short limit, Short type, Short status, Short goodsType, Integer[] goodsValue, Short timeType, Short days, LocalDateTime addTime, LocalDateTime updateTime);

    int delete(Integer id);

    MarketCoupon create(String name, String desc, String tag, Integer total, BigDecimal discount, BigDecimal min, Short limit, Short type, Short status, Short goodsType, Integer[] goodsValue, Short timeType, Short days, LocalDateTime startTime, LocalDateTime endTime);

    List<MarketCoupon> read(String id);

    List<MarketCouponUser> listuser(Integer page, Integer limit, Integer couponId, String sort, String order);

}
